<?php
include ("inc/header.php");
$url="product.php?type=".$_GET["type"];
?>
<form name="form1" action="<?echo $url?>" method="post">
 		</form>
<div class="main2">
	<div class="product_list">
		<ul>
		
			<?
			$tab="production";
			$and="";
			if($_GET["type"]!=""){
				$and=" and type=".$_GET["type"]." ";
			}
			include ("pagination.php");
			$i=1;
			while ($rs=mysql_fetch_array($result)){
			?>
			<li>
				<div class="main_left_title"><?=$rs["name"]?></div>
				<div style="float:left;"><img src='<?=$rs["picpath"]?>'><p>SKU:<?=$rs["code"]?></p></div>
				<span><?=$rs["productinfo"]?></span>
				<div class="order_title">Order Now</div>
				<table style="margin:20px 0 0 0;">
					<?
					$sql="SELECT * FROM package where productionid=".$rs["id"]." order by id asc";
					$result1=mysql_query($sql) or die(mysql_error());
					while ($rs1=mysql_fetch_array($result1)){
					?>
					<tr>
						<td><input name="packageId" type="radio" value="<?=$rs1["id"]?>"/></td><td width="190px;"> <?=$rs1["title"]?></td><td><?=$rs1["price"]?></td>
					</tr>
					<?}?>
					
				</table>
				<div class="line"></div>
				<div class="product_car">
					Number of Items: <input type="text" class="car_input" /> <input type="button" class="car_button" />
				</div>
			</li>
			<?}?>
			
		</ul>
			<div class="page"><?include ("page.php");?></div>
	</div>
	<!--footer start-->
	<?php
		include ("inc/footer.php");
		?>
	<!--footer end-->
</div>
<!--main end-->

</body>
</html>
